﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="AzukiMapUI.ImageSourceProperties"
	Width="600" Height="480">

	<Grid x:Name="LayoutRoot" Background="#FFFFFFFF">
		<Grid.RowDefinitions>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
			<RowDefinition Height="26"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="150"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
        
        <!-- labels -->
		<TextBlock Margin="8,0,0,0" Text="Image URI" TextWrapping="Wrap" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="Image Extent" TextWrapping="Wrap" Grid.Row="1" VerticalAlignment="Center"/>
		<TextBlock Margin="16,4,0,6" Text="Max Point" TextWrapping="Wrap" Grid.Row="2" d:LayoutOverrides="Height"/>
		<TextBlock Margin="16,4,0,6" Text="Min Point" TextWrapping="Wrap" Grid.Row="3" d:LayoutOverrides="Height"/>
		<TextBlock Margin="8,0,8,0" Text="Image Size" TextWrapping="Wrap" Grid.Row="4" VerticalAlignment="Center"/>
		<TextBlock Margin="16,4,0,6" Text="Width" TextWrapping="Wrap" Grid.Row="5" d:LayoutOverrides="Height"/>
		<TextBlock Margin="16,4,0,6" Text="Height" TextWrapping="Wrap" Grid.Row="6" d:LayoutOverrides="Height"/>
		<TextBlock Margin="8,0,8,0" Text="SRID" TextWrapping="Wrap" Grid.Row="7" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="Max Scale" TextWrapping="Wrap" Grid.Row="8" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="Min Scale" TextWrapping="Wrap" Grid.Row="9" VerticalAlignment="Center"/>
		<TextBlock Margin="8,0,8,0" Text="Option Params" TextWrapping="Wrap" Grid.Row="10" VerticalAlignment="Center"/>
        
        <!-- inputs -->
		<TextBox x:Name="TbUri" LostFocus="TbUri_LostFocus" Margin="8,0,8,0" Text="http://localhost/azukimap" TextWrapping="Wrap" Grid.Column="1" d:LayoutOverrides="HorizontalAlignment" VerticalAlignment="Center"/>
        
		<TextBlock HorizontalAlignment="Left" Margin="8,5,0,5" Width="6" Text="(" TextWrapping="Wrap" d:LayoutOverrides="Height" Grid.Column="1" Grid.Row="2"/>
		<TextBox x:Name="TbMaxLon" LostFocus="TbMaxLon_LostFocus" Margin="19,0,0,0" TextWrapping="Wrap" Width="120" d:LayoutOverrides="Width" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" Height="Auto"/>
		<TextBlock HorizontalAlignment="Left" Margin="143,5,0,5" Width="6" Text="," TextWrapping="Wrap" d:LayoutOverrides="Height" Grid.Column="1" Grid.Row="2"/>
		<TextBox x:Name="TbMaxLat" LostFocus="TbMaxLat_LostFocus" Margin="163,1,0,1" TextWrapping="Wrap" Width="120" d:LayoutOverrides="Height" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" Height="Auto"/>
		<TextBlock HorizontalAlignment="Left" Margin="287,5,0,5" Width="6" Text=")" TextWrapping="Wrap" d:LayoutOverrides="Height" Grid.Column="1" Grid.Row="2"/>
        
		<TextBlock HorizontalAlignment="Left" Margin="8,4,0,4" Width="6" Text="(" TextWrapping="Wrap" d:LayoutOverrides="Height" Grid.Column="1" Grid.Row="3"/>
		<TextBox x:Name="TbMinLon" LostFocus="TbMinLon_LostFocus" Margin="19,0,0,0" TextWrapping="Wrap" Width="120" d:LayoutOverrides="Width" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="3" VerticalAlignment="Center" Height="Auto"/>
		<TextBlock HorizontalAlignment="Left" Margin="143,4,0,4" Width="6" Text="," TextWrapping="Wrap" d:LayoutOverrides="Height" Grid.Column="1" Grid.Row="3"/>
		<TextBox x:Name="TbMinLat" LostFocus="TbMinLat_LostFocus" Margin="163,0,0,0" TextWrapping="Wrap" Width="120" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center" Height="Auto"/>
		<TextBlock HorizontalAlignment="Left" Margin="287,0,0,0" Width="6" Text=")" TextWrapping="Wrap" d:LayoutOverrides="Height" Grid.Column="1" Grid.Row="3" VerticalAlignment="Center"/>

		<TextBox x:Name="TbWidth" LostFocus="TbWidth_LostFocus" Margin="8,0,8,0" Text="1000" TextWrapping="Wrap" Grid.Column="1" Grid.Row="5" VerticalAlignment="Center" Height="Auto" Width="48" HorizontalAlignment="Left"/>
		<TextBox x:Name="TbHeight" LostFocus="TbHeight_LostFocus" Margin="8,0,8,0" Text="1000" TextWrapping="Wrap" Grid.Column="1" Grid.Row="6" VerticalAlignment="Center" Height="Auto" Width="48" HorizontalAlignment="Left"/>
        
		<TextBox x:Name="TbSrid" LostFocus="TbSrid_LostFocus" Margin="8,0,8,0" Text="4326" TextWrapping="Wrap" Grid.Column="1" Grid.Row="7" VerticalAlignment="Center" Height="Auto" Width="48" HorizontalAlignment="Left"/>
		<TextBox x:Name="TbMaxScale" LostFocus="TbMaxScale_LostFocus" Margin="8,0,8,0" Text="999999999999" TextWrapping="Wrap" Grid.Column="1" Grid.Row="8" VerticalAlignment="Center" Height="Auto" Width="128" HorizontalAlignment="Left"/>
		<TextBox x:Name="TbMinScale" LostFocus="TbMinScale_LostFocus" Margin="8,0,8,0" Text="0" TextWrapping="Wrap" Grid.Column="1" Grid.Row="9" VerticalAlignment="Center" Height="Auto" Width="128" HorizontalAlignment="Left"/>
		<TextBox x:Name="TbOptionParams" LostFocus="TbOptionParams_LostFocus" Margin="8,0,8,0" Text="" TextWrapping="Wrap" Grid.Column="1" Grid.Row="10" VerticalAlignment="Center" Height="Auto" Width="Auto" HorizontalAlignment="Stretch"/>
		<Button x:Name="BtnTest" Click="BtnTest_Click" Visibility="Collapsed" IsEnabled="False" Height="24" HorizontalAlignment="Right" Margin="0,0,8,-32" VerticalAlignment="Bottom" Width="96" Grid.Column="1" Grid.Row="9" Content="Test" d:LayoutOverrides="VerticalAlignment"/>

        <!-- warn icons -->
        <Image Height="16" x:Name="IconErrorUri" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="0"/>
        <Image Height="16" x:Name="IconErrorMaxPoint" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="2"/>
        <Image Height="16" x:Name="IconErrorMinPoint" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="3"/>
        <Image Height="16" x:Name="IconErrorWidth" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="5"/>
        <Image Height="16" x:Name="IconErrorHeight" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="6"/>
        <Image Height="16" x:Name="IconErrorSrid" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="7"/>
        <Image Height="16" x:Name="IconErrorMaxScale" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="8"/>
        <Image Height="16" x:Name="IconErrorMinScale" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="9"/>
	</Grid>
</UserControl>